import Vuex from "vuex";
import Vue from "vue";

Vue.use(Vuex)


export default new Vuex.Store({
    state:{
        num:18
    },
    //Vuex的计算属性
    getters:{
        doubleNum(state){
            return state.num*2
        }
    }
})